﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace DataService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IDalService
    {
        [OperationContract]
        DataTable GetLogin(string Username, string password);

        [OperationContract]
        void Register(string Username, byte[] Salt, byte[] Hash);

        //[OperationContract]
        //string EnterAppointment(AppEnter calendarMain);

        //[OperationContract]
        //DataTable GridRefill();

        //[OperationContract]
        //string GetData(int value);

        //[OperationContract]
        //CompositeType GetDataUsingDataContract(CompositeType composite);
    }

    // TODO: Add your service operations here
    //[DataContract]
    //public class User
    //{
    //    int pkID = 0;
    //    string username = "";
    //    string password = "";

    //    [DataMember]
    //    public int PKID
    //    {
    //        get { return pkID; }
    //        private set { pkID = value; }
    //    }

    //    [DataMember]
    //    public string Username
    //    {
    //        get { return username; }
    //        set { username = value; }
    //    }

    //    [DataMember]
    //    public string Password
    //    {
    //        get { return password; }
    //        set { password = value; }
    //    }
    //}


    // Use a data contract as illustrated in the sample below to add composite types to service operations.
    //[DataContract]
    //public class AppEnter
    //{
    //    string date;
    //    string starttime;
    //    string endtime;
    //    string description;

    //    [DataMember]
    //    public string Date
    //    {
    //        get { return date; }
    //        set { date = value; }
    //    }

    //    [DataMember]
    //    public string StartTime
    //    {
    //        get { return starttime; }
    //        set { starttime = value; }
    //    }

    //    [DataMember]
    //    public string EndTime
    //    {
    //        get { return endtime; }
    //        set { endtime = value; }
    //    }

    //    [DataMember]
    //    public string Description
    //    {
    //        get { return description; }
    //        set { description = value; }
    //    }

    //}

    //[DataContract]
    //public class CompositeType
    //{
    //    bool boolValue = true;
    //    string stringValue = "Hello ";

    //    [DataMember]
    //    public bool BoolValue
    //    {
    //        get { return boolValue; }
    //        set { boolValue = value; }
    //    }

    //    [DataMember]
    //    public string StringValue
    //    {
    //        get { return stringValue; }
    //        set { stringValue = value; }
    //    }
    //}
}
